package com.wanlong.rpc;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author 万龙
 * @name
 * @project_name wanlong
 * @package_name com.wanlong.rpc
 * @description
 * @date 2019/2/9
 */
public class App {
    public static void main(String[] args) throws IOException {
        //dubbo启动方式
        //com.alibaba.dubbo.container.Main.main(args);

        //声明式启动
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:spring/spring-mybatis.xml");
        context.start();
        System.out.println("wanlong-rpc-service  已启动...");
        System.in.read();
    }
}
